﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020008B5 RID: 2229
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GroupStateInfo : IMessage<GroupStateInfo>, IMessage, IEquatable<GroupStateInfo>, IDeepCloneable<GroupStateInfo>, IBufferMessage
	{
		// Token: 0x17001C0A RID: 7178
		// (get) Token: 0x0600639E RID: 25502 RVA: 0x001084DD File Offset: 0x001066DD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GroupStateInfo> Parser
		{
			get
			{
				return GroupStateInfo._parser;
			}
		}

		// Token: 0x17001C0B RID: 7179
		// (get) Token: 0x0600639F RID: 25503 RVA: 0x001084E4 File Offset: 0x001066E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GroupStateInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001C0C RID: 7180
		// (get) Token: 0x060063A0 RID: 25504 RVA: 0x001084F6 File Offset: 0x001066F6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GroupStateInfo.Descriptor;
			}
		}

		// Token: 0x060063A1 RID: 25505 RVA: 0x001084FD File Offset: 0x001066FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GroupStateInfo()
		{
		}

		// Token: 0x060063A2 RID: 25506 RVA: 0x00108508 File Offset: 0x00106708
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GroupStateInfo(GroupStateInfo other) : this()
		{
			this.playerUid_ = other.playerUid_;
			this.entryId_ = other.entryId_;
			this.groupId_ = other.groupId_;
			this.groupState_ = other.groupState_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060063A3 RID: 25507 RVA: 0x0010855C File Offset: 0x0010675C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GroupStateInfo Clone()
		{
			return new GroupStateInfo(this);
		}

		// Token: 0x17001C0D RID: 7181
		// (get) Token: 0x060063A4 RID: 25508 RVA: 0x00108564 File Offset: 0x00106764
		// (set) Token: 0x060063A5 RID: 25509 RVA: 0x0010856C File Offset: 0x0010676C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PlayerUid
		{
			get
			{
				return this.playerUid_;
			}
			set
			{
				this.playerUid_ = value;
			}
		}

		// Token: 0x17001C0E RID: 7182
		// (get) Token: 0x060063A6 RID: 25510 RVA: 0x00108575 File Offset: 0x00106775
		// (set) Token: 0x060063A7 RID: 25511 RVA: 0x0010857D File Offset: 0x0010677D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EntryId
		{
			get
			{
				return this.entryId_;
			}
			set
			{
				this.entryId_ = value;
			}
		}

		// Token: 0x17001C0F RID: 7183
		// (get) Token: 0x060063A8 RID: 25512 RVA: 0x00108586 File Offset: 0x00106786
		// (set) Token: 0x060063A9 RID: 25513 RVA: 0x0010858E File Offset: 0x0010678E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GroupId
		{
			get
			{
				return this.groupId_;
			}
			set
			{
				this.groupId_ = value;
			}
		}

		// Token: 0x17001C10 RID: 7184
		// (get) Token: 0x060063AA RID: 25514 RVA: 0x00108597 File Offset: 0x00106797
		// (set) Token: 0x060063AB RID: 25515 RVA: 0x0010859F File Offset: 0x0010679F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GroupState
		{
			get
			{
				return this.groupState_;
			}
			set
			{
				this.groupState_ = value;
			}
		}

		// Token: 0x060063AC RID: 25516 RVA: 0x001085A8 File Offset: 0x001067A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GroupStateInfo);
		}

		// Token: 0x060063AD RID: 25517 RVA: 0x001085B8 File Offset: 0x001067B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GroupStateInfo other)
		{
			return other != null && (other == this || (this.PlayerUid == other.PlayerUid && this.EntryId == other.EntryId && this.GroupId == other.GroupId && this.GroupState == other.GroupState && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060063AE RID: 25518 RVA: 0x00108624 File Offset: 0x00106824
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.PlayerUid != 0U)
			{
				num ^= this.PlayerUid.GetHashCode();
			}
			if (this.EntryId != 0U)
			{
				num ^= this.EntryId.GetHashCode();
			}
			if (this.GroupId != 0U)
			{
				num ^= this.GroupId.GetHashCode();
			}
			if (this.GroupState != 0U)
			{
				num ^= this.GroupState.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060063AF RID: 25519 RVA: 0x001086AE File Offset: 0x001068AE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060063B0 RID: 25520 RVA: 0x001086B6 File Offset: 0x001068B6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060063B1 RID: 25521 RVA: 0x001086C0 File Offset: 0x001068C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.EntryId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.EntryId);
			}
			if (this.GroupState != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.GroupState);
			}
			if (this.PlayerUid != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.PlayerUid);
			}
			if (this.GroupId != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.GroupId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060063B2 RID: 25522 RVA: 0x00108754 File Offset: 0x00106954
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.PlayerUid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PlayerUid);
			}
			if (this.EntryId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EntryId);
			}
			if (this.GroupId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GroupId);
			}
			if (this.GroupState != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GroupState);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060063B3 RID: 25523 RVA: 0x001087DC File Offset: 0x001069DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GroupStateInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.PlayerUid != 0U)
			{
				this.PlayerUid = other.PlayerUid;
			}
			if (other.EntryId != 0U)
			{
				this.EntryId = other.EntryId;
			}
			if (other.GroupId != 0U)
			{
				this.GroupId = other.GroupId;
			}
			if (other.GroupState != 0U)
			{
				this.GroupState = other.GroupState;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060063B4 RID: 25524 RVA: 0x00108854 File Offset: 0x00106A54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060063B5 RID: 25525 RVA: 0x00108860 File Offset: 0x00106A60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 80U)
				{
					if (num == 48U)
					{
						this.EntryId = input.ReadUInt32();
						continue;
					}
					if (num == 80U)
					{
						this.GroupState = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 112U)
					{
						this.PlayerUid = input.ReadUInt32();
						continue;
					}
					if (num == 120U)
					{
						this.GroupId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x0400260A RID: 9738
		private static readonly MessageParser<GroupStateInfo> _parser = new MessageParser<GroupStateInfo>(() => new GroupStateInfo());

		// Token: 0x0400260B RID: 9739
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400260C RID: 9740
		public const int PlayerUidFieldNumber = 14;

		// Token: 0x0400260D RID: 9741
		private uint playerUid_;

		// Token: 0x0400260E RID: 9742
		public const int EntryIdFieldNumber = 6;

		// Token: 0x0400260F RID: 9743
		private uint entryId_;

		// Token: 0x04002610 RID: 9744
		public const int GroupIdFieldNumber = 15;

		// Token: 0x04002611 RID: 9745
		private uint groupId_;

		// Token: 0x04002612 RID: 9746
		public const int GroupStateFieldNumber = 10;

		// Token: 0x04002613 RID: 9747
		private uint groupState_;
	}
}
